package com.hpjpw.ido.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hpjpw.ido.mapper.ResumeReceivedMapper;
import com.hpjpw.ido.domain.ResumeReceived;
import com.hpjpw.ido.service.IResumeReceivedService;

/**
 * 简历投递记录Service业务层处理
 * 
 * @author hpj
 * @date 2021-04-17
 */
@Service
public class ResumeReceivedServiceImpl implements IResumeReceivedService 
{
    @Autowired
    private ResumeReceivedMapper resumeReceivedMapper;

    /**
     * 查询简历投递记录
     * @param id 简历投递记录ID
     * @return 简历投递记录
     */
    @Override
    public ResumeReceived selectResumeReceivedById(Long id)
    {
        return resumeReceivedMapper.selectResumeReceivedById(id);
    }

    /**
     * 查询简历投递记录列表
     * @param resumeReceived 简历投递记录
     * @return 简历投递记录
     */
    @Override
    public List<ResumeReceived> selectResumeReceivedList(ResumeReceived resumeReceived)
    {
        return resumeReceivedMapper.selectResumeReceivedList(resumeReceived);
    }

    /**
     * 新增简历投递记录
     * @param resumeReceived 简历投递记录
     * @return 结果
     */
    @Override
    public int insertResumeReceived(ResumeReceived resumeReceived)
    {
        return resumeReceivedMapper.insertResumeReceived(resumeReceived);
    }

    /**
     * 修改简历投递记录
     * @param resumeReceived 简历投递记录
     * @return 结果
     */
    @Override
    public int updateResumeReceived(ResumeReceived resumeReceived)
    {
        return resumeReceivedMapper.updateResumeReceived(resumeReceived);
    }
    /**
     * 修改简历投递状态
     * @param resumeReceivedId 简历记录id
     * @param state 状态
     * @return 结果
     */
    @Override
    public int updateResumeReceivedState(Long resumeReceivedId,Long state)
    {
        return resumeReceivedMapper.updateResumeReceivedState(resumeReceivedId,state);
    }

    /**
     * 批量删除简历投递记录
     * @param ids 需要删除的简历投递记录ID
     * @return 结果
     */
    @Override
    public int deleteResumeReceivedByIds(String[] ids)
    {
        return resumeReceivedMapper.deleteResumeReceivedByIds(ids);
    }

    /**
     * 删除简历投递记录信息
     * @param id 简历投递记录ID
     * @return 结果
     */
    @Override
    public int deleteResumeReceivedById(String id)
    {
        return resumeReceivedMapper.deleteResumeReceivedById(id);
    }
}
